package com.wg.entity;

import java.util.Date;
import java.io.Serializable;
import java.util.List;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * (Wginfos)实体类
 *
 * @author Hello World
 * @since 2022-08-29 03:31:11
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@Accessors(chain = true)
@TableName("tb_wginfos")
public class WgInfos implements Serializable {
    private static final long serialVersionUID = 256357442606910165L;
    
    private Long id;

    private String name;
    
    private String schedule;
    
    private String description;
    
    private Long creatorId;

    @TableField(exist = false)
    private String creatorName;

    
    private String learnoutcome;
    
    private Integer status;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @TableField(fill = FieldFill.INSERT)
    private String year;

    private Date startTime;

    private Date endTime;

    /**
     * 子任务集合
     */
    @TableField(exist = false)
    private List<Subtask> subtaskList;

    /**
     * 关注者集合
     */
    @TableField(exist = false)
    private List<Focus> focusList;

    /**
     * 申请集合
     */
    @TableField(exist = false)
    private List<Applys> applysList;

}

